package com.jinniulive.platform.activity;

import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;

import com.jinniulive.platform.tools.StatusBarUtil;

/**
 * Created by Administrater on 2016/12/6.
 */

public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(getLayoutId());
        setStatusBar();
        initView();
    }

    protected abstract void initView();

    public abstract int getLayoutId();

    protected void setStatusBar() {
        StatusBarUtil.setColor(this,Color.parseColor("#212121"));
    }
}
